package com.situ.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * sal_chance实体类
 * 
 * @author 胡文 qq:986776
 *
 */
@Data
@ApiModel("SalChance信息")
public class SalChance  implements java.io.Serializable{

    @ApiModelProperty(value ="主键编号,主键，标识列",allowEmptyValue = true)
	private Long chc_id;

    @ApiModelProperty(value ="机会来源",allowEmptyValue = true)
    private String chc_source;
    @ApiModelProperty(value ="客户名称",allowEmptyValue = true)
    private String chc_cust_name;
    @ApiModelProperty(value ="概要",allowEmptyValue = true)
    private String chc_title;
    @ApiModelProperty(value ="成功机率(默认0)",allowEmptyValue = true)
    private Integer chc_rate;
    @ApiModelProperty(value ="联系人",allowEmptyValue = true)
    private String chc_linkman;
    @ApiModelProperty(value ="联系人电话",allowEmptyValue = true)
    private String chc_tel;
    @ApiModelProperty(value ="机会描述",allowEmptyValue = true)
    private String chc_desc;
    @ApiModelProperty(value ="创建人id",allowEmptyValue = true)
    private Long chc_create_id;
    @ApiModelProperty(value ="创建人",allowEmptyValue = true)
    private String chc_create_by;
    @ApiModelProperty(value ="创建时间(默认当前时间)",allowEmptyValue = true)
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") //转换时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //前台传递参数给后台的数据格式
    private Date chc_create_date;
    @ApiModelProperty(value ="指派给id",allowEmptyValue = true)
    private Long chc_due_id;
    @ApiModelProperty(value ="指派给name",allowEmptyValue = true)
    private String chc_due_to;
    @ApiModelProperty(value ="指派时间",allowEmptyValue = true)
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //前台传递参数给后台的数据格式
    private Date chc_due_date;
    @ApiModelProperty(value ="状态1-未指派2-已指派3-开发成功",allowEmptyValue = true)
    private String chc_status;

}
